package com.jiangruan.javaproject.service;/**
 * @author:xulonghua
 * @email:3162193565@qq.com desc:
 * datatime 2021/12/13 21:34
 */

import com.alibaba.fastjson.JSONObject;
import com.jiangruan.javaproject.Constants;
import com.jiangruan.javaproject.bean.Getblockcount;

/**
 *@author:xulonghua
 *@email:3162193565@qq.com
 *desc:获取区块数量
 *datetime 2021/12/13 21:34
 */
public class GetBlockCount {
    public Getblockcount getblockcount(int id){
        String result = UtilCommon.utilcommon ( id, Constants.GetBlockCount );
        //json解析
        //把result数据解析getblockcount成类型
        Getblockcount getblockcount = JSONObject.parseObject ( result, Getblockcount.class );
        return getblockcount;
    }
}
